<div>
<h1>Cégek</h1>
<?php
foreach($this->Session->read('Settings.cegek') as $ceg){
	//debug($ceg);
	print '<div class="ceg">';
		print '<legend>' . $ceg['Gyujto']['nev'] . '</legend>';
		print '<ul>';
			foreach($ceg['Gyujto']['evek'] as $ev){
				print '<li>' .
								$this->Html->link($ev, array(
														'controller' => 'gyujtok',
														'action' => 'ceg/' . $ceg['Gyujto']['id'] . '/' . $ev)) .
								'</li>';
			}
		print '</ul>';
	print '</div>';
}
?>
</div>